package com.qkl.xiatang.app.dto.wvp;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.util.HashMap;
import java.util.Map;

@Data
public class PlayBackRecordQueryDTO implements IPlayBack{

    private String channelId;

    private String startTime;

    private String endTime;

    public Map<String,Object> toParams(){
        Map<String,Object> map = new HashMap<>();
        map.put("channelId", StringUtils.trimToEmpty(channelId));
        map.put("startTime", StringUtils.trimToEmpty(startTime));
        map.put("endTime", StringUtils.trimToEmpty(endTime));
        return map;
    }
}


